package com.yanmaohu.nikita.data.expression;

/**
 * :::
 * @author Bright Lee
 */
public final class DataTypeConvertExpression extends Expression {

    private Expression data;
    private NameExpression typeName;

    public DataTypeConvertExpression(Expression data, NameExpression typeName) {
        super(data.getBeginIndex(), data.getEndIndex());
        this.data = data;
        this.typeName = typeName;
    }

    public Expression getData() {
        return data;
    }

    public NameExpression getTypeName() {
        return typeName;
    }
}
